﻿<Window x:Class="Program.MainWindow"  
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:wpfForm= "clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"      
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Határidő" Height="603" Width="1240" xmlns:editors="http://schemas.actiprosoftware.com/winfx/xaml/editors" WindowStartupLocation="CenterScreen" Style="{DynamicResource WindowTemplate}">    
    <Grid>
        <TreeView Name="tvLista" HorizontalAlignment="Left" Width="217" Margin="0,20,0,21" BorderThickness="1" Padding="0,1,1,1" Opacity="0.8" BorderBrush="Black">
            <TreeViewItem Cursor="Hand" Header="Ügyfelek" Name="tviUgyfelek" Selected="tviUgyfelek_Selected" Unselected="tviUgyfelek_Unselected"/>
            <TreeViewItem Header="Adónemek" IsSelected="False" Name="tviBevallasok" Selected="tviBevallasok_Selected" Unselected="tviBevallasok_Unselected"/>
            <TreeViewItem Header="Lekérdezések" Name="tviLekerdezesek" Cursor="Hand" Selected="tviLekerdezesek_Selected">
                <TreeViewItem Header="Beadott dokumentumok"/>
                <TreeViewItem Header="Beadásra váró dokumentumok"/>
            </TreeViewItem>
        </TreeView>
        
        
        
        <Menu Height="23" Name="mnFoMenu" VerticalAlignment="Top">
            <MenuItem Header="Fájl">
                <MenuItem Header="Nyomtatás" />
                <Separator />
                <MenuItem Header="Kilépés" />
            </MenuItem>
            <MenuItem Header="Adatok">
                <MenuItem Header="Devizanemek" Click="MenuItem_Click"/>
                <Separator />
                <MenuItem Header="Irányítószámok" Click="MenuItem_Click_1"/>
                <MenuItem Header="Közterület jellegek" Click="MenuItem_Click_2"/>
                <Separator/>
                <MenuItem Header="Illetékes szervek">
                    <MenuItem Header="Adóhatóságok" />
                    <MenuItem Header="Egészségbiztosítási pénztárak" />
                    <MenuItem Header="Nyugdíj folyósítási igazgatóságok" />
                    <MenuItem Header="Cégbíróságok" />
                    <MenuItem Header="Helyi adóhatóságok" />
                    <MenuItem Header="KSH illetékességek" />
                </MenuItem>
                <Separator />
                <MenuItem Header="Ügyfélkapuk" MouseDoubleClick="MenuItem_MouseDoubleClick">
                    <MenuItem Header="Jelszó beállítása"/>
                </MenuItem>
            </MenuItem>
        </Menu>
        
        <!--Ügyfelek grid-->
        <Grid Margin="215,20,0,21" Name="grUgyfelek" Visibility="Hidden">
            
            <GroupBox Header="Törzsadatok" HorizontalAlignment="Left" Margin="0,1,0,0" Name="grbTorzsadatok" Width="502" Height="392" VerticalAlignment="Top" Style="{DynamicResource GroupBoxTemplate}">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="164*" />
                        <ColumnDefinition Width="326*" />
                    </Grid.ColumnDefinitions>
                    <Label Content="Cég rövid név:" Height="28" Margin="6,6,66,0" Name="lbCegRovidNev" VerticalAlignment="Top" />
                    <Label Content="Cég hosszú név:" Height="28" Margin="6,40,64,0" Name="lbCegHosszuNev" VerticalAlignment="Top" />
                    <Label Content="Adószám:" Height="28" Margin="6,74,96,0" Name="lbAdoszam" VerticalAlignment="Top" />
                    <Label Content="Van-e alkalmazott:" Height="28" Margin="6,278,44,0" Name="lbAlkalmazott" VerticalAlignment="Top" />
                    <Label Content="Bankszámlaszám:" Height="28" Margin="6,142,56,0" Name="lbBankszamlaszam" VerticalAlignment="Top" />
                    <Label Content="Bankszámla vezető neve:" Height="28" Margin="6,108,15,0" Name="lbBankszamlaVezetoNeve" VerticalAlignment="Top" />
                    <Label Content="Alkalmazottak száma:" Height="28" Margin="36,304,0,0" Name="lbAlkalmazottakSzama" VerticalAlignment="Top" IsEnabled="False" />
                    <Label Content="Devizanem:" Height="28" Margin="6,176,86,0" Name="lbDevizanem" VerticalAlignment="Top" />
                    <Label Content="Ügyvezető neve:" Height="28" Margin="6,210,56,0" Name="lbUgyvezetoNeve" VerticalAlignment="Top" />
                    <Label Content="KSH szám:" Height="28" Margin="6,244,86,0" Name="lbKshszam" VerticalAlignment="Top" />
                    <Label Content="Számlás:" Height="28" Margin="6,0,96,3" Name="lbSzamlas" VerticalAlignment="Bottom" />
                    <TextBox Grid.Column="1" Height="23" Margin="0,8,0,0" Name="tbCegRovidNev" VerticalAlignment="Top" HorizontalAlignment="Left" Width="320" TabIndex="1" Style="{DynamicResource TextBoxTemplate}"/>
                    <TextBox Height="23" Margin="0,42,0,0" Name="tbCegHosszuNev" VerticalAlignment="Top" Grid.Column="1" HorizontalAlignment="Left" Width="320" Style="{DynamicResource TextBoxTemplate}" TabIndex="2" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="0,110,0,0" Name="tbBankszamlaVezetoNeve" VerticalAlignment="Top" Width="320" Grid.Column="1" Style="{DynamicResource TextBoxTemplate}" TabIndex="4" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="0,212,0,0" Name="tbUgyvezetoNeve" VerticalAlignment="Top" Width="320" Grid.Column="1" Style="{DynamicResource TextBoxTemplate}" TabIndex="7" />
                    <CheckBox Content="Van alkalmazott" Grid.Column="1" Height="16" HorizontalAlignment="Left" Margin="0,283,0,0" Name="cbAlkalmazott" VerticalAlignment="Top" Checked="cbAlkalmazott_Checked" Unchecked="cbAlkalmazott_Unchecked" TabIndex="9" />
                    <CheckBox Content="Számlás" Height="16" HorizontalAlignment="Left" Margin="0,0,0,10" Name="cbSzamlas" VerticalAlignment="Bottom" Grid.Column="1" TabIndex="11" />
                    <WindowsFormsHost Height="24" HorizontalAlignment="Left" Margin="0,74,0,0" Name="wfhAdoszam" VerticalAlignment="Top" Width="84" Grid.Column="1" TabIndex="3" LostFocus="wfhAdoszam_LostFocus">
                        <wpfForm:MaskedTextBox x:Name="mtbAdoszam" Mask="00000000-0-00" GotFocus="mtbAdoszam_GotFocus" LostFocus="mtbAdoszam_LostFocus"/>
                    </WindowsFormsHost>
                    <WindowsFormsHost Height="24" HorizontalAlignment="Left" Margin="0,146,0,0" Name="wfhBankszamlaszam" VerticalAlignment="Top" Width="164" Grid.Column="1" AllowDrop="False" TabIndex="5">
                        <wpfForm:MaskedTextBox x:Name="mtbBankszamlaszam" Mask="00000000-00000000-00000000"  GotFocus="mtbAdoszam_GotFocus" LostFocus="mtbAdoszam_LostFocus"/>
                    </WindowsFormsHost>
                    <ComboBox Grid.Column="1" Height="23" HorizontalAlignment="Left" Margin="0,181,0,0" Name="cbDevizanem" VerticalAlignment="Top" Width="120" Style="{DynamicResource ComboBoxTemplate}" TabIndex="6">
                        <ComboBoxItem Content="1" />
                        <ComboBoxItem Content="2" />
                        <ComboBoxItem Content="3" />
                        <ComboBoxItem Content="4" />
                        <ComboBoxItem Content="5" />
                    </ComboBox>
                    <WindowsFormsHost Height="24" HorizontalAlignment="Left" Margin="0,244,0,0" Name="wfhKshSzam" VerticalAlignment="Top" Width="125" Grid.Column="1" TabIndex="8">
                        <wpfForm:MaskedTextBox x:Name="mtbKshSzam" Mask="00000000-0000-000-00"  GotFocus="mtbKshSzam_GotFocus" LostFocus="mtbAdoszam_LostFocus"/>
                    </WindowsFormsHost>
                    <WindowsFormsHost Height="24" HorizontalAlignment="Left" Margin="0,0,0,37" Name="wfhAlkalmazottakSzama" VerticalAlignment="Bottom" Width="60" Grid.Column="1" SnapsToDevicePixels="False" TabIndex="10">
                        <wpfForm:NumericUpDown x:Name="nudAlkalmazottakSzama" Enabled="False" GotFocus="nudTelephelyKerulet_GotFocus" LostFocus="nudTelephelyKerulet_LostFocus"/>
                    </WindowsFormsHost>
                </Grid>
            </GroupBox>

            <GroupBox Header="Székhely" Height="119" Margin="502,1,0,0" Name="gbSzekhely" VerticalAlignment="Top" Opacity="1" Style="{DynamicResource GroupBoxTemplate}">
                <Grid OpacityMask="Black">
                    <Label Content="Irányítószám:" Height="28" HorizontalAlignment="Left" Margin="6,6,0,0" Name="lbSzekhelyIranyitoszam" VerticalAlignment="Top" />
                    <Label Content="Település:" Height="28" Margin="133,6,0,0" Name="lbSzekhelyTelepules" VerticalAlignment="Top" HorizontalAlignment="Left" Width="62" />
                    <Label Content="Közterület neve:" Height="28" HorizontalAlignment="Left" Margin="6,40,0,0" Name="lbSzekhelyKozteruletNeve" VerticalAlignment="Top" />
                    <Label Content="Kerület:" Height="28" Margin="0,6,68,0" Name="lbSzekhelyKerulet" VerticalAlignment="Top" Foreground="Black" HorizontalAlignment="Right" Width="50" IsEnabled="False" Background="{x:Null}" />
                    <Label Content="Közterület jellege:" Height="28" HorizontalAlignment="Right" Margin="0,40,104,0" Name="lbSzekhelyKozteruletJellege" VerticalAlignment="Top" />
                    <Label Content="Helyrajzi szám:" Height="28" HorizontalAlignment="Left" Margin="6,68,0,0" Name="lbSzekhelyHelyrajziSzam" VerticalAlignment="Top" />
                    <Label Content="Emelet:" Height="28" Margin="160,68,0,0" Name="lbSzekhelyEmelet" VerticalAlignment="Top" HorizontalAlignment="Left" Width="49" />
                    <Label Content="Ajtó:" Height="28" HorizontalAlignment="Left" Margin="281,68,0,0" Name="lbSzekhelyAjto" VerticalAlignment="Top" />
                    <WindowsFormsHost Height="24" Margin="92,8,0,0" Name="wfhIranyitoszam" VerticalAlignment="Top" HorizontalAlignment="Left" Width="35" TabIndex="12">
                        <wpfForm:MaskedTextBox x:Name="mtbIranyitoszam" Mask="0000"  GotFocus="mtbAdoszam_GotFocus" LostFocus="mtbAdoszam_LostFocus"/>
                    </WindowsFormsHost>
                    <TextBox Height="23" Margin="204,8,124,0" Name="tbSzekhelyTelepules" VerticalAlignment="Top" TextChanged="tbSzekhelyTelepules_TextChanged"  Style="{DynamicResource TextBoxTemplate}" TabIndex="13" />
                    <TextBox Height="23" Margin="102,42,214,0" Name="tbSzekhelyKozteruletNeve" VerticalAlignment="Top" Style="{DynamicResource TextBoxTemplate}" TabIndex="15" />
                    <TextBox Height="23" Margin="92,70,0,0" Name="bSzekhelyHelyrajziSzam" VerticalAlignment="Top" HorizontalAlignment="Left" Width="62" Style="{DynamicResource TextBoxTemplate}" TabIndex="17" />
                    <TextBox Height="23" Margin="204,70,0,0" Name="tbSzekhelyEmelet" VerticalAlignment="Top" HorizontalAlignment="Left" Width="71" Style="{DynamicResource TextBoxTemplate}" TabIndex="19" />
                    <TextBox Height="23" Margin="314,70,0,0" Name="tbSzekhelyAjto" VerticalAlignment="Top" HorizontalAlignment="Left" Width="51" Style="{DynamicResource TextBoxTemplate}" TabIndex="20" />
                    <WindowsFormsHost Height="26" Margin="0,6,6,0" Name="wfhSzekhelyKerulet" VerticalAlignment="Top" HorizontalAlignment="Right" Width="56" IsEnabled="False" TabIndex="14">
                        <wpfForm:NumericUpDown x:Name="nudSzekhelyKerulet" GotFocus="nudTelephelyKerulet_GotFocus" LostFocus="nudTelephelyKerulet_LostFocus"/>
                    </WindowsFormsHost>
                    <ComboBox Height="23" Margin="0,42,6,0" Name="cbSzekhelyKozteruletJellege" VerticalAlignment="Top" HorizontalAlignment="Right" Width="92" GotFocus="cbDevizanem_GotFocus" LostFocus="cbDevizanem_LostFocus" TabIndex="16" />
                </Grid>
            </GroupBox>

            <GroupBox Header="Telephely" Height="156" Margin="502,123,0,0" Name="gbTelephely" VerticalAlignment="Top" Style="{DynamicResource GroupBoxTemplate}">
                <Grid>
                    <Label Content="Irányítószám:" Height="28" HorizontalAlignment="Left" Margin="6,6,0,0" Name="lbTelephelyIranyitoszam" VerticalAlignment="Top" />
                    <Label Content="Település:" Height="28" HorizontalAlignment="Left" Margin="133,6,0,0" Name="lbTelephelyTelepules" VerticalAlignment="Top" />
                    <Label Content="Közterület neve:" Height="28" HorizontalAlignment="Left" Margin="6,40,0,0" Name="lbTelephelyKozteruletNeve" VerticalAlignment="Top" />
                    <Label Content="Kerület:" Foreground="Black" Height="28" HorizontalAlignment="Right" Margin="0,6,68,0" Name="lbTelephelyKerulet" VerticalAlignment="Top" IsEnabled="False"/>
                    <Label Content="Közterület jellege:" Height="28" Margin="0,40,104,0" Name="lbTelephelyKozteruletJellege" VerticalAlignment="Top" HorizontalAlignment="Right" Width="104" />
                    <Label Content="Helyrajzi szám:" Height="28" HorizontalAlignment="Left" Margin="6,68,0,0" Name="lbTelephelyHelyrajziSzam" VerticalAlignment="Top" />
                    <Label Content="Emelet:" Height="28" HorizontalAlignment="Left" Margin="160,68,0,0" Name="lbTelephelyEmelet" VerticalAlignment="Top" />
                    <Label Content="Ajtó:" Height="28" HorizontalAlignment="Left" Margin="281,68,0,0" Name="lbTelephelyAjto" VerticalAlignment="Top" />
                    <WindowsFormsHost Height="24" Margin="92,10,0,0" Name="wfhTelephelyIranyitoszam" VerticalAlignment="Top" HorizontalAlignment="Left" Width="35" TabIndex="21">
                        <wpfForm:MaskedTextBox x:Name="mtbTelephelyIranyitoszam" Mask="0000" GotFocus="mtbAdoszam_GotFocus" LostFocus="mtbAdoszam_LostFocus"/>
                    </WindowsFormsHost>
                    <TextBox Height="23" Margin="195,8,124,0" Name="tbTelephelyTelepules" VerticalAlignment="Top" TabIndex="22">
                    </TextBox>
                    <TextBox Height="23" Margin="102,42,214,0" Name="tbTelephelyKozteruletNeve" VerticalAlignment="Top" Style="{DynamicResource TextBoxTemplate}" TabIndex="24" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="92,72,0,0" Name="tbTelepulesHelyrajziSzam" VerticalAlignment="Top" Width="62" Style="{DynamicResource TextBoxTemplate}" TabIndex="26" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="204,72,0,0" Name="tbTelepulesEmelet" VerticalAlignment="Top" Width="71" Style="{DynamicResource TextBoxTemplate}" TabIndex="27" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="314,72,0,0" Name="tbTelepulesAjto" VerticalAlignment="Top" Width="51" Style="{DynamicResource TextBoxTemplate}" TabIndex="28" />
                    <WindowsFormsHost Height="26" Margin="0,8,6,0" Name="wfhTelephelyKerulet" VerticalAlignment="Top" HorizontalAlignment="Right" Width="56" IsEnabled="False" TabIndex="23">
                        <wpfForm:NumericUpDown x:Name="nudTelephelyKerulet" GotFocus="nudTelephelyKerulet_GotFocus" LostFocus="nudTelephelyKerulet_LostFocus"/>
                    </WindowsFormsHost>
                    <ComboBox Height="23" Margin="0,44,6,0" Name="cbTelephelyKozteruletJellege" VerticalAlignment="Top" HorizontalAlignment="Right" Width="92" GotFocus="cbDevizanem_GotFocus" LostFocus="cbDevizanem_LostFocus" TabIndex="25" />
                    <Button Content="Új telephely" Height="23" HorizontalAlignment="Left" Margin="11,102,0,0" Name="btTelephelyUj" VerticalAlignment="Top" Width="75" />
                    <Button Content="Telephely törlése" Height="23" Margin="92,102,0,0" Name="btTelephelyTorles" VerticalAlignment="Top" Width="103" HorizontalAlignment="Left" />
                </Grid>
            </GroupBox>

            <GroupBox Header="Illetékes szervek" Height="207" Margin="502,279,0,0" Name="gbIlletekesSzervek" VerticalAlignment="Top" Style="{DynamicResource GroupBoxTemplate}">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="183" />
                        <ColumnDefinition Width="306" />
                    </Grid.ColumnDefinitions>
                    <Label Content="Adóhatóság:" HorizontalAlignment="Left" Margin="6,8,0,0" Name="lbAdohatosag" Height="28" VerticalAlignment="Top" />
                    <TextBox Height="23" Margin="5,8,6,0" Name="tbAdohatosag" VerticalAlignment="Top" Grid.Column="1" Style="{DynamicResource TextBoxTemplate}" TabIndex="29" />
                    <Label Content="Egészség biztosítási pénztár:" Height="28" HorizontalAlignment="Left" Margin="6,34,0,0" Name="lbEgeszsegBiztositasiPenztar" VerticalAlignment="Top" />
                    <Label Content="Nyugdíj folyósítási igazgatóság:" Height="28" HorizontalAlignment="Left" Margin="6,61,0,0" Name="lbNyugdijFolyositasiIgazgatosag" VerticalAlignment="Top" />
                    <Label Content="Cégbíróság:" Height="28" HorizontalAlignment="Left" Margin="6,94,0,0" Name="lbCegbirosag" VerticalAlignment="Top" />
                    <Label Content="Helyi adóhatóság:" Height="28" HorizontalAlignment="Left" Margin="6,121,0,0" Name="lbHelyiAdohatosag" VerticalAlignment="Top" />
                    <Label Content="KSH illetékesség:" Height="28" HorizontalAlignment="Left" Margin="6,150,0,0" Name="lbKshIlletékesség" VerticalAlignment="Top" />
                    <TextBox Height="23" Margin="5,36,6,0" Name="tbEgeszsegBiztositasiPenztar" VerticalAlignment="Top" Grid.Column="1" Style="{DynamicResource TextBoxTemplate}" TabIndex="30" />
                    <TextBox Height="23" Margin="5,66,6,0" Name="tbNyugdijFolyosotasiPenztar" VerticalAlignment="Top" Grid.Column="1" Style="{DynamicResource TextBoxTemplate}" TextChanged="tbNyugdijFolyosotasiPenztar_TextChanged" TabIndex="31" />
                    <TextBox Height="23" Margin="5,96,6,0" Name="tbCegbirosag" VerticalAlignment="Top" Grid.Column="1" Style="{DynamicResource TextBoxTemplate}" TabIndex="32" />
                    <TextBox Height="23" Margin="5,123,6,0" Name="tbHelyiAdohatosag" VerticalAlignment="Top" Grid.Column="1" Style="{DynamicResource TextBoxTemplate}" TabIndex="33" />
                    <TextBox Height="23" Margin="5,152,6,0" Name="tbKshIlletekesseg" VerticalAlignment="Top" Grid.Column="1" Style="{DynamicResource TextBoxTemplate}" TabIndex="34" />
                </Grid>
            </GroupBox>
            
            <GroupBox Header="Ügyfél kapu" HorizontalAlignment="Left" Margin="0,391,0,0" Name="gbUgyfelKapu" Width="502" Height="95" VerticalAlignment="Top" Style="{DynamicResource GroupBoxTemplate}">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="164*" />
                        <ColumnDefinition Width="326*" />
                    </Grid.ColumnDefinitions>
                    <Label Content="Ügyfélkapu felhasználónév:" Height="28" Margin="6,6,0,0" Name="lbUgyfelkapuFelhasznalonev" VerticalAlignment="Top" />
                    <ComboBox Grid.Column="1" Height="23" HorizontalAlignment="Left" Margin="0,11,0,0" Name="cbUgyfelkapuFelhasznalonev" VerticalAlignment="Top" Width="320" TabIndex="35" LostFocus="cbDevizanem_LostFocus" GotFocus="cbDevizanem_GotFocus" />
                    <Button Content="Belépés" Grid.Column="1" Height="23" HorizontalAlignment="Left" Margin="0,43,0,0" Name="btBelepes" VerticalAlignment="Top" Width="75" TabIndex="36" />
                </Grid>
            </GroupBox>
            <Button Content="Új ügyfél" HorizontalAlignment="Left" Margin="6,492,0,0" Name="btUjUgyfel" Width="75" Height="23" VerticalAlignment="Top" />
            <Button Content="Ügyfél adatainak módosítása" HorizontalAlignment="Left" Margin="95,492,0,0" Name="btUgyfelModositas" Width="177" Height="23" VerticalAlignment="Top" />
            <Button Content="Ügyfél törlése" Margin="278,492,0,0" Name="btUgyfelTorles" Height="23" VerticalAlignment="Top" HorizontalAlignment="Left" Width="103" />
        </Grid>
        
        
        <!--Adónemek Grid-->
        <Grid Margin="215,20,0,21" Name="grAdonemek" Visibility="Hidden">
            <DataGrid Height="485" Name="dgAdonemek" VerticalAlignment="Top" ItemsSource="{Binding}" CellStyle="{DynamicResource DataGridCellTemplate}" ColumnHeaderStyle="{DynamicResource DataGridHeaderTemplate}" Style="{DynamicResource DataGridTemplate}">
                <DataGrid.Columns>
                    <DataGridTextColumn Header="Sorszám" HeaderStringFormat="" Width="100" Binding="{Binding Path=ID}"/>
                    <DataGridTextColumn Header="Név" HeaderStringFormat="" Width="200" Binding="{Binding Path=Nev}"/>
                    <DataGridTextColumn Header="Számalszám" HeaderStringFormat="" Width="200" Binding="{Binding Path=Szamlaszam}"/>
                    <DataGridTextColumn Header="Bevallásszáma" HeaderStringFormat="" Width="150" Binding="{Binding Path=Bevallasszam}"/>
                    <DataGridTextColumn Header="Beadás dátuma" HeaderStringFormat="" Width="175" Binding="{Binding Path=BeadasDatuma}"/>
                    <DataGridTextColumn Header="Gyakorisága (hónap)" HeaderStringFormat="" Width="155" Binding="{Binding Path=Gyakorisag}"/>
                </DataGrid.Columns>
            </DataGrid>
            <Button Content="Új adónem" Height="23" HorizontalAlignment="Left" Margin="6,494,0,0" Name="btAdonemUj" VerticalAlignment="Top" Width="75" />
            <Button Content="Adónem törlése" Height="23" HorizontalAlignment="Left" Margin="216,494,0,0" Name="btAdonemTorles" VerticalAlignment="Top" Width="100" />
            <Button Content="Adónem módosítása" Height="23" HorizontalAlignment="Left" Margin="87,494,0,0" Name="btAdonemModositas" VerticalAlignment="Top" Width="123" />
        </Grid>
        <StatusBar Name="sbInformacio" Height="23" VerticalAlignment="Bottom" />
        <Label Content="" Height="523" HorizontalAlignment="Left" Margin="215,20,0,0" Name="lbTulajdonos" VerticalAlignment="Top" Width="1003" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Opacity="0.5" FontSize="60"/>
    </Grid>
    <Window.Background>
        <ImageBrush ImageSource="/Program;component/Images/Háttér.jpg" />
    </Window.Background>


    <!--Stílusok-->
    <Window.Resources>
        <!--TextBoxok stílusa-->
        <Style x:Key="TextBoxTemplate" TargetType="TextBox">
            <Style.Resources>
                <Storyboard x:Key="fillYellow">
                    <ColorAnimation Storyboard.TargetProperty="Background.Color" To="Yellow" Duration="0:0:0"></ColorAnimation>
                </Storyboard>

                <Storyboard x:Key="fillWhite">
                    <ColorAnimation Storyboard.TargetProperty="Background.Color" To="White" Duration="0:0:0"></ColorAnimation>
                </Storyboard>
            </Style.Resources>            
            
            <Style.Triggers>
                <EventTrigger RoutedEvent="GotFocus">
                    <BeginStoryboard Storyboard="{StaticResource fillYellow}"/>
                </EventTrigger>

                <EventTrigger RoutedEvent="LostFocus">
                    <BeginStoryboard Storyboard="{StaticResource fillWhite}"/>
                </EventTrigger>
            </Style.Triggers>
        </Style>

        <!--GroupBox stílusa-->
        <Style x:Key="GroupBoxTemplate" TargetType="GroupBox">
            <Style.Resources>
                <Storyboard x:Key="increaseThickness">
                    <ThicknessAnimation Storyboard.TargetProperty="BorderThickness" To="2" Duration="0:0:0"></ThicknessAnimation>
                </Storyboard>

                <Storyboard x:Key="decreaseThickness">
                    <ThicknessAnimation Storyboard.TargetProperty="BorderThickness" To="1" Duration="0:0:0"></ThicknessAnimation>
                </Storyboard>
            </Style.Resources>
            
            <Style.Triggers>
                <EventTrigger RoutedEvent="GotFocus">
                    <BeginStoryboard Storyboard="{StaticResource increaseThickness}"/>
                </EventTrigger>

                <EventTrigger RoutedEvent="LostFocus">
                    <BeginStoryboard Storyboard="{StaticResource decreaseThickness}"/>
                </EventTrigger>
            </Style.Triggers>
            
            <Style.Setters>
                <Setter Property="BorderBrush" Value="Black"></Setter>
            </Style.Setters>
        </Style>
        
        <!--DataGrid cellák stílusa-->
        <Style x:Key="DataGridCellTemplate" TargetType="DataGridCell">
            <Style.Triggers>
                <Trigger Property="IsSelected" Value="True">
                    <Setter Property="Background" Value="Yellow"/>
                    <Setter Property="BorderBrush" Value="Yellow"/>
                    <Setter Property="Foreground" Value="Black" />
                </Trigger>                
            </Style.Triggers>
        </Style>
        
        <Style x:Key="DataGridTemplate" TargetType="DataGrid">
            <Style.Setters>
                <Setter Property="Opacity" Value="0.8"/>
                <Setter Property="AlternatingRowBackground" Value="LightGray"/>
                <Setter Property="SelectionUnit" Value="FullRow"/>
                <Setter Property="GridLinesVisibility" Value="None"/>
                <Setter Property="AutoGenerateColumns" Value="False"/>
                <Setter Property="CanUserAddRows" Value="True"/>
                <Setter Property="CanUserDeleteRows" Value="True"/>
                <Setter Property="VerticalAlignment" Value="Top"/>
            </Style.Setters>
        </Style>
        
        <Style x:Key="DataGridHeaderTemplate" TargetType="DataGridColumnHeader">
            <Setter Property="FontWeight" Value="Bold"/>
        </Style>

        <Style x:Key="WindowTemplate" TargetType="Window">
            <Setter Property="ResizeMode" Value="CanMinimize"></Setter>
        </Style>
    </Window.Resources>
</Window>
